package com.demo.test.service.impl;

import com.demo.test.entity.Toupiao;
import com.demo.test.mapper.ToupiaoMapper;
import com.demo.test.service.IToupiaoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XieHuan
 * @since 2017-06-10
 */
@Service
public class ToupiaoServiceImpl extends ServiceImpl<ToupiaoMapper, Toupiao> implements IToupiaoService {

    @Autowired
    private  ToupiaoMapper toupiaoMapper;

    @Override
    public List<Toupiao> selectByUserId(String name) {
        return toupiaoMapper.selectByUserId(name);
    }

    @Override
    public int deleteBySingid(String id) {
        return toupiaoMapper.deleteBySingid(id);
    }
}
